package com.jiazhong.shuzu;

public class Demo02 {
    public static void main(String[] args) {
        int a1[]={12,42,21,43,13,14};
        int a2[]=new int[a1.length];
        for (int i=0,j=a1.length-1;i<a1.length;i++,j--){
            a2[j]=a1[i];
        }
        a1=a2;
        for (int i=0;i<a1.length;i++){
            System.out.print(" "+a1[i]);
        }
    }
}
